We are migrating this Jira service to Github. Issue creation is no longer possible on this server and must be done on Github. However, you may browse issues without an account. Editing or commenting on existing issues requires an account.

Please support SLF4J/logback/reload4j projects via Github donations and sponsorship.

Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-587

Suggestion: Change logger name of inner classes.

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • 0.9.18
    • 0.9.15
    • logback-classic
    • None

    Description

      At the moment, the logger name of inner classes is OuterClass$InnerClass.
      Because of that, the logging level of OuterClass isn't inherited by InnerClass at the moment.

      If LoggerFactory changed the logger name to OuterClass.InnerClass instead, InnerClass would inherit the logging level of OuterClass which seems intuitively correct.

      I'd suggest to accept both $InnerClass and .InnerClass style in logback configurations for compatibility and usability reasons.

      Attachments

        Activity

          Loading...
          We are migrating this Jira service to Github. Issue creation is no longer possible on this server and must be done on Github. However, you may browse issues without an account. Editing or commenting on existing issues requires an account.

          Please support SLF4J/logback/reload4j projects via Github donations and sponsorship.

          Uploaded image for project: 'logback'
          1. logback
          2. LOGBACK-587

          Suggestion: Change logger name of inner classes.

          Details

            • Icon: Improvement Improvement
            • Resolution: Unresolved
            • Icon: Major Major
            • 0.9.18
            • 0.9.15
            • logback-classic
            • None

            Description

              At the moment, the logger name of inner classes is OuterClass$InnerClass.
              Because of that, the logging level of OuterClass isn't inherited by InnerClass at the moment.

              If LoggerFactory changed the logger name to OuterClass.InnerClass instead, InnerClass would inherit the logging level of OuterClass which seems intuitively correct.

              I'd suggest to accept both $InnerClass and .InnerClass style in logback configurations for compatibility and usability reasons.

              Attachments

                Activity

                  People

                    ceki Ceki Gülcü
                    jhuxhorn Joern Huxhorn
                    Votes:
                    0 Vote for this issue
                    Watchers:
                    1 Start watching this issue

                    Dates

                      Created:
                      Updated:

                      People

                        ceki Ceki Gülcü
                        jhuxhorn Joern Huxhorn
                        Votes:
                        0 Vote for this issue
                        Watchers:
                        1 Start watching this issue

                        Dates

                          Created:
                          Updated: